package cn.sgjk.train.batch.Feign;


import cn.sgjk.train.common.resp.CommonResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;

@FeignClient(value = "business",fallback = BusinessFeignFallBack.class)
//@FeignClient(name = "business",url = "http://127.0.0.1:8082/business")
public interface BusinessFeign {

    @GetMapping("/business/Hello")
    public String Hello();
    @GetMapping("/admin/daily-train/gen-daily/{date}")
    public CommonResp<Object> genAll(@PathVariable @DateTimeFormat(pattern = "yyyy-MM-dd") Date date);
}

